﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using orz.mouxianyu.Services;
using orz.mouxianyu.Services.lmpl;

namespace orz.mouxianyu.Extensions
{
    public static class ApiCoreServiceExtensions
    {
        /// <summary>
        /// 配置 业务逻辑层注入 Startup 辅助类
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddApiCoreService(this IServiceCollection services)
        {
            /*
            *  业务逻辑层注入
            */
            services.AddScoped<ITestService, TestService>();
            services.AddScoped<ILoginService, LoginService>();

            return services;
        }
    }
}
